package com.example.pengxiangedupay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pengxiangedupay.common.constant.OrderStatus;
import com.example.pengxiangedupay.entity.OrderInfoEntity;

import java.math.BigDecimal;

public interface OrderInfoService extends IService<OrderInfoEntity> {
    OrderInfoEntity createOrderByProductId(Long productId, BigDecimal total);
    OrderInfoEntity getNoPayOrderByProductId(Long productId);

    OrderInfoEntity getOrderByOrderNo(String outTradeNo);

    String getOrderStatus(String orderNo);

    void updateStatusByOrderNo(String orderNo, OrderStatus success);
}
